package models

import "gorm.io/gorm"

type Category struct {
	gorm.Model
	Typec      int    `gorm:"column:type;type:int(2);" json:"type"`
	Name       string `gorm:"column:name;type:varchar(32);" json:"name"`
	Status     int    `gorm:"column:status;type:int(2);" json:"status"`
	Sort       int    `gorm:"column:sort;type:int(2);" json:"sort"`
	UpdateUser int
}

func (Category) TableName() string {
	return "category"
}
